package com.panshi.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 问题审核表
 * </p>
 *
 * @author xhlMr
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AppMatterCheckT对象", description="问题审核表")
public class AppMatterCheckT implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "matter_id", type = IdType.AUTO)
    private Integer matterId;

    @ApiModelProperty(value = "分类id")
    private Integer classifyId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "问题标题")
    private String matterTitle;

    @ApiModelProperty(value = "问题背景")
    private String matterContent;

    @ApiModelProperty(value = "图片路径")
    private String imgPath;

    @ApiModelProperty(value = "状态: 0草稿; 1上架; 2审核中; 3未通过审核")
    private String matterStatus;

    @ApiModelProperty(value = "是否删除 y是; n否")
    @TableField("isRemove")
    private String isRemove;

    @ApiModelProperty(value = "描述(备注)")
    private String matterDescribe;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "上架时间")
    private Date groundTime;

    @ApiModelProperty(value = "删除时间")
    private Date removeTime;

    @ApiModelProperty(value = "审核时间")
    private Date checkTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
